package com.housekeeper.manage.mapper;

import com.housekeeper.api.manage.dtos.bill.OwnerBillDto;
import com.housekeeper.manage.pojos.Bill;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface BillMapper {

    @Select("SELECT * FROM bill")
    List<OwnerBillDto> getOwnerBill();
    void insertBill(Bill bill);
    @Select("SELECT * FROM bill WHERE bill_code = #{billCode}")
    Bill getOwnerBillDetail(Long billCode);
}
